-
Notifications
You must be signed in to change notification settings - Fork 113
Android layout fixes #3695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android layout fixes #3695
Conversation
05f3672 to
ac3d716
Compare
|
Tested on Android 7,8,13,15,16 |
benma
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
tACK on Android 16, very nice!
left two comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why in the v23 folder (we support v24+ only anyway)? Couldn't it simply be in res/values/styles.xml?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's v23 because some of the attributes are supported from v23+. But yeah, since our minSdk is 24 we could also collapse everything inside values/values-night folders.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done 👍
| - Sort backups from newest to oldest in manage backups | ||
| - Android: fix display of external links from Bitrefill | ||
| - fix language sometimes not persistent across app restarts | ||
| - Android: fix layout issues with status and navigation bars. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
" ... on Android 15+"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There were issues also in previous versions
ac3d716 to
3070d18
Compare
Android 15 (API 35) enforces edge-to-edge display by default, causing the app to draw behind the system navigation bar. This commit adds to the root layout to prevent the app content from overlapping with the system navigation bar.
The colors of both the status and the navigation bars and their icons were not always matching the app background. Also, forcing the app theme in the settings and then switching the OS theme was sometime causing the bar icons to change and blend with the bars. This commit does the following: - Drives the colors of both bars and icons in the setDarkTheme method to avoid misalignemnts with the app theme - Removes the onConfigurationChanged overriding, which was conficting with the implemented theme handling, which is delegated to the frontend DarkmodeProvider. Listening of OS theme changes in the activity must be avoided as it could fire unwanted changes in the app theme. - Improve the app static styles, to reduce the color flickering before setDarkTheme() is called for the first time. - Apply matching backgrounds to the root layout and WebView so the bars blend with the app in both light and dark modes.
3070d18 to
0886330
Compare
The colors of both the status and the navigation bars and their icons
were not always matching the app background.
Also, forcing the app theme in the settings and then switching the OS
theme was sometime causing the bar icons to change and blend with the
bars.
This commit does the following:
to avoid misalignemnts with the app theme
with the implemented theme handling, which is delegated to the frontend
DarkmodeProvider. Listening of OS theme changes in the activity must be
avoided as it could fire unwanted changes in the app theme.
setDarkTheme() is called for the first time.
blend with the app in both light and dark modes.
Also fixes navigation bar overlap.